package cn.tutu.blockchain.transrecord.entity;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

import cn.tutu.blockchain.base.BaseObject;

/**
 * 转账记录
 * <p>
 * Title: TransRecord
 * </p>
 * <p>
 * Description:
 * </p>
 * 
 * @author 眭善峰
 * @date 2018年12月4日
 *
 */
public class TransRecord extends BaseObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7122530834473971490L;
	@NotBlank(message = "转出eth不能为空!")
	private String frometh;
	@NotBlank(message = "转入eth不能为空!")
	private String toeth;
	@NotBlank(message = "用户ID不能为空!")
	private String userId;
	@NotNull(message = "转账币值不能为空!")
	private Double value;
	@NotBlank(message = "转账流水不能为空!")
	private String transNum;

	public String getFrometh() {
		return frometh;
	}

	public void setFrometh(String frometh) {
		this.frometh = frometh;
	}

	public String getToeth() {
		return toeth;
	}

	public void setToeth(String toeth) {
		this.toeth = toeth;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Double getValue() {
		return value;
	}

	public void setValue(Double value) {
		this.value = value;
	}

	public String getTransNum() {
		return transNum;
	}

	public void setTransNum(String transNum) {
		this.transNum = transNum;
	}

}
